import { IsOptional, IsString, IsBoolean, IsDateString } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { PartialType } from '@nestjs/mapped-types';
import { CreateSecurityLogDto } from './create-security-log.dto';

export class UpdateSecurityLogDto extends PartialType(CreateSecurityLogDto) {
  @ApiPropertyOptional({
    description: '是否已处理',
  })
  @IsOptional()
  @IsBoolean()
  isHandled?: boolean;

  @ApiPropertyOptional({
    description: '处理人ID',
  })
  @IsOptional()
  @IsString()
  handledBy?: string;

  @ApiPropertyOptional({
    description: '处理备注',
  })
  @IsOptional()
  @IsString()
  handledNote?: string;

  @ApiPropertyOptional({
    description: '处理时间',
  })
  @IsOptional()
  @IsDateString()
  handledAt?: string;
}
